package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:52
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductDatabase implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String databaseName;

    /**
     * Attribute databaseName Be Seted Falg
     */
    private boolean databaseNameSetted = false;

    /**
    * Attribute databaseName is Null Falg
    */
    private boolean databaseNameNull = false;
    private String databaseType;

    /**
     * Attribute databaseType Be Seted Falg
     */
    private boolean databaseTypeSetted = false;

    /**
    * Attribute databaseType is Null Falg
    */
    private boolean databaseTypeNull = false;
    private String databaseUser;

    /**
     * Attribute databaseUser Be Seted Falg
     */
    private boolean databaseUserSetted = false;

    /**
    * Attribute databaseUser is Null Falg
    */
    private boolean databaseUserNull = false;
    private String databasePassword;

    /**
     * Attribute databasePassword Be Seted Falg
     */
    private boolean databasePasswordSetted = false;

    /**
    * Attribute databasePassword is Null Falg
    */
    private boolean databasePasswordNull = false;
    private String databaseIp;

    /**
     * Attribute databaseIp Be Seted Falg
     */
    private boolean databaseIpSetted = false;

    /**
    * Attribute databaseIp is Null Falg
    */
    private boolean databaseIpNull = false;
    private String databasePort;

    /**
     * Attribute databasePort Be Seted Falg
     */
    private boolean databasePortSetted = false;

    /**
    * Attribute databasePort is Null Falg
    */
    private boolean databasePortNull = false;
    private String databaseServiceId;

    /**
     * Attribute databaseServiceId Be Seted Falg
     */
    private boolean databaseServiceIdSetted = false;

    /**
    * Attribute databaseServiceId is Null Falg
    */
    private boolean databaseServiceIdNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;

    public ProductDatabase() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get databaseName
         *
         * @return String
         */
    final public String getDatabaseName() {
        if (isDatabaseNameNull()) {
            return null;
        } else {
            return StringUtils.trim(databaseName);
        }
    }

    /**
     * Set databaseName
     *
     * @param String
     */
    final public void setDatabaseName(String databaseName) {
        this.databaseName = StringUtils.trim(databaseName);

        this.databaseNameSetted = true;

        this.setDatabaseNameNull(this.databaseName == null);
    }

    /**
     * Get databaseName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabaseNameSetted() {
        return this.databaseNameSetted;
    }

    /**
     * Set databaseName Null
     *
     */
    final public void setDatabaseNameNull() {
        this.databaseNameNull = true;
    }

    final public void setDatabaseNameNull(boolean aNullFlag) {
        this.databaseNameNull = aNullFlag;
    }

    final public boolean isDatabaseNameNull() {
        return this.databaseNameNull;
    }

    /**
         * Get databaseType
         *
         * @return String
         */
    final public String getDatabaseType() {
        if (isDatabaseTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(databaseType);
        }
    }

    /**
     * Set databaseType
     *
     * @param String
     */
    final public void setDatabaseType(String databaseType) {
        this.databaseType = StringUtils.trim(databaseType);

        this.databaseTypeSetted = true;

        this.setDatabaseTypeNull(this.databaseType == null);
    }

    /**
     * Get databaseType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabaseTypeSetted() {
        return this.databaseTypeSetted;
    }

    /**
     * Set databaseType Null
     *
     */
    final public void setDatabaseTypeNull() {
        this.databaseTypeNull = true;
    }

    final public void setDatabaseTypeNull(boolean aNullFlag) {
        this.databaseTypeNull = aNullFlag;
    }

    final public boolean isDatabaseTypeNull() {
        return this.databaseTypeNull;
    }

    /**
         * Get databaseUser
         *
         * @return String
         */
    final public String getDatabaseUser() {
        if (isDatabaseUserNull()) {
            return null;
        } else {
            return StringUtils.trim(databaseUser);
        }
    }

    /**
     * Set databaseUser
     *
     * @param String
     */
    final public void setDatabaseUser(String databaseUser) {
        this.databaseUser = StringUtils.trim(databaseUser);

        this.databaseUserSetted = true;

        this.setDatabaseUserNull(this.databaseUser == null);
    }

    /**
     * Get databaseUser Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabaseUserSetted() {
        return this.databaseUserSetted;
    }

    /**
     * Set databaseUser Null
     *
     */
    final public void setDatabaseUserNull() {
        this.databaseUserNull = true;
    }

    final public void setDatabaseUserNull(boolean aNullFlag) {
        this.databaseUserNull = aNullFlag;
    }

    final public boolean isDatabaseUserNull() {
        return this.databaseUserNull;
    }

    /**
         * Get databasePassword
         *
         * @return String
         */
    final public String getDatabasePassword() {
        if (isDatabasePasswordNull()) {
            return null;
        } else {
            return StringUtils.trim(databasePassword);
        }
    }

    /**
     * Set databasePassword
     *
     * @param String
     */
    final public void setDatabasePassword(String databasePassword) {
        this.databasePassword = StringUtils.trim(databasePassword);

        this.databasePasswordSetted = true;

        this.setDatabasePasswordNull(this.databasePassword == null);
    }

    /**
     * Get databasePassword Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabasePasswordSetted() {
        return this.databasePasswordSetted;
    }

    /**
     * Set databasePassword Null
     *
     */
    final public void setDatabasePasswordNull() {
        this.databasePasswordNull = true;
    }

    final public void setDatabasePasswordNull(boolean aNullFlag) {
        this.databasePasswordNull = aNullFlag;
    }

    final public boolean isDatabasePasswordNull() {
        return this.databasePasswordNull;
    }

    /**
         * Get databaseIp
         *
         * @return String
         */
    final public String getDatabaseIp() {
        if (isDatabaseIpNull()) {
            return null;
        } else {
            return StringUtils.trim(databaseIp);
        }
    }

    /**
     * Set databaseIp
     *
     * @param String
     */
    final public void setDatabaseIp(String databaseIp) {
        this.databaseIp = StringUtils.trim(databaseIp);

        this.databaseIpSetted = true;

        this.setDatabaseIpNull(this.databaseIp == null);
    }

    /**
     * Get databaseIp Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabaseIpSetted() {
        return this.databaseIpSetted;
    }

    /**
     * Set databaseIp Null
     *
     */
    final public void setDatabaseIpNull() {
        this.databaseIpNull = true;
    }

    final public void setDatabaseIpNull(boolean aNullFlag) {
        this.databaseIpNull = aNullFlag;
    }

    final public boolean isDatabaseIpNull() {
        return this.databaseIpNull;
    }

    /**
         * Get databasePort
         *
         * @return String
         */
    final public String getDatabasePort() {
        if (isDatabasePortNull()) {
            return null;
        } else {
            return StringUtils.trim(databasePort);
        }
    }

    /**
     * Set databasePort
     *
     * @param String
     */
    final public void setDatabasePort(String databasePort) {
        this.databasePort = StringUtils.trim(databasePort);

        this.databasePortSetted = true;

        this.setDatabasePortNull(this.databasePort == null);
    }

    /**
     * Get databasePort Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabasePortSetted() {
        return this.databasePortSetted;
    }

    /**
     * Set databasePort Null
     *
     */
    final public void setDatabasePortNull() {
        this.databasePortNull = true;
    }

    final public void setDatabasePortNull(boolean aNullFlag) {
        this.databasePortNull = aNullFlag;
    }

    final public boolean isDatabasePortNull() {
        return this.databasePortNull;
    }

    /**
         * Get databaseServiceId
         *
         * @return String
         */
    final public String getDatabaseServiceId() {
        if (isDatabaseServiceIdNull()) {
            return null;
        } else {
            return StringUtils.trim(databaseServiceId);
        }
    }

    /**
     * Set databaseServiceId
     *
     * @param String
     */
    final public void setDatabaseServiceId(String databaseServiceId) {
        this.databaseServiceId = StringUtils.trim(databaseServiceId);

        this.databaseServiceIdSetted = true;

        this.setDatabaseServiceIdNull(this.databaseServiceId == null);
    }

    /**
     * Get databaseServiceId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDatabaseServiceIdSetted() {
        return this.databaseServiceIdSetted;
    }

    /**
     * Set databaseServiceId Null
     *
     */
    final public void setDatabaseServiceIdNull() {
        this.databaseServiceIdNull = true;
    }

    final public void setDatabaseServiceIdNull(boolean aNullFlag) {
        this.databaseServiceIdNull = aNullFlag;
    }

    final public boolean isDatabaseServiceIdNull() {
        return this.databaseServiceIdNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductDatabase) == false) {
            return false;
        }

        ProductDatabase other = (ProductDatabase) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("databaseName=");
        buffer.append(this.databaseName);

        buffer.append("databaseType=");
        buffer.append(this.databaseType);

        buffer.append("databaseUser=");
        buffer.append(this.databaseUser);

        buffer.append("databasePassword=");
        buffer.append(this.databasePassword);

        buffer.append("databaseIp=");
        buffer.append(this.databaseIp);

        buffer.append("databasePort=");
        buffer.append(this.databasePort);

        buffer.append("databaseServiceId=");
        buffer.append(this.databaseServiceId);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("]");

        return buffer.toString();
    }
}
